import multiprocessing


def test(t):
    t.append(10)
    t.append(9)
    t.append(6)


def test2(t):
    t.append(1)
    t.append(2)
    t.append(3)


if __name__ == '__main__':
    t_list = multiprocessing.Manager().list()
    p1 = multiprocessing.Process(target=test, args=(t_list,))
    p2 = multiprocessing.Process(target=test2, args=(t_list,))
    p1.start()
    p2.start()
    p1.join()
    p2.join()
    print(t_list)
